Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vector-search: fix attach #1799

Merged
merged 8 commits into from
Oct 29, 2024
Merged

vector-search: fix attach #1799

merged 8 commits into from
Oct 29, 2024

Conversation

sivukhin
Copy link
Contributor

Eponymous virtual tables exists only in main schema and any prefix before them is no-op for SQLite (like attached.vector_top_k(...); see https://www.sqlite.org/vtab.html#epovtab)

So, in order to use vector search from other schema name - we need to develop internal convention that index name string argument can have schema name prefix (in similar way as usual SQL query): SELECT * FROM vector_top_k('attached.t_idx', vector('[1,2,3]'), 4).

This PR support this feature which will allow users to query vector search indices from attached DBs.

@sivukhin sivukhin changed the title Vector search fix attach vector-search: fix attach Oct 29, 2024
@penberg penberg added this pull request to the merge queue Oct 29, 2024
Merged via the queue into main with commit d0edd1d Oct 29, 2024
19 checks passed
@penberg penberg deleted the vector-search-fix-attach branch October 29, 2024 15:56
sivukhin added a commit that referenced this pull request Oct 30, 2024
- new release will include fix for vector search in attached DBs (see #1799)
@sivukhin sivukhin mentioned this pull request Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants